﻿using System;

public partial class HK_RoomInfoModal : HSMPage
{
    protected int RoomID
    {
        get
        {
            return int.Parse(SecureQueryString["roomID"]);
        }
    }
    protected int InvoiceID
    {
        get
        {
            return int.Parse(SecureQueryString["InvoiceID"]);
        }
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        this.PageType = GuruPageType.Modal;
        this.FixedModalWidth = HSMConstants.DefaultFixedModalWidth;
        if (!IsPostBack)
        {
            this.uxRoomStatus.BindComboBox(HSMConstants.RefType.RoomStatus, false);
            this.uxRoomType.BindComboBox(HSMConstants.RefType.RoomType, false);
            if (this.InvoiceID > 0)
            {
                this.uxRoomStatus.Enabled = false;
                this.uxRoomType.Enabled = false;
                this.uxRoomName.Enabled = false;
                this.uxSave.Enabled = false;
            }
        }
    }
}
